
package com.ysy.tz.mfg.entity;

import com.ysy.tz.core.engine.Modelable;

public class WarehouseEntity extends BaseEntity implements Modelable {
    private Integer warehouseId;
    private String warehouseCode;
    private String warehouseName;

    public String getModelStringValue() {
        return this.warehouseName;
    }

    public WarehouseEntity() {
    }

    public Integer getWarehouseId() {
        return this.warehouseId;
    }

    public String getWarehouseCode() {
        return this.warehouseCode;
    }

    public String getWarehouseName() {
        return this.warehouseName;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }

    public void setWarehouseCode(String warehouseCode) {
        this.warehouseCode = warehouseCode;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof WarehouseEntity)) {
            return false;
        } else {
            WarehouseEntity other = (WarehouseEntity)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label47: {
                    Object this$warehouseId = this.getWarehouseId();
                    Object other$warehouseId = other.getWarehouseId();
                    if (this$warehouseId == null) {
                        if (other$warehouseId == null) {
                            break label47;
                        }
                    } else if (this$warehouseId.equals(other$warehouseId)) {
                        break label47;
                    }

                    return false;
                }

                Object this$warehouseCode = this.getWarehouseCode();
                Object other$warehouseCode = other.getWarehouseCode();
                if (this$warehouseCode == null) {
                    if (other$warehouseCode != null) {
                        return false;
                    }
                } else if (!this$warehouseCode.equals(other$warehouseCode)) {
                    return false;
                }

                Object this$warehouseName = this.getWarehouseName();
                Object other$warehouseName = other.getWarehouseName();
                if (this$warehouseName == null) {
                    if (other$warehouseName != null) {
                        return false;
                    }
                } else if (!this$warehouseName.equals(other$warehouseName)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof WarehouseEntity;
    }

    public int hashCode() {
        int result = 1;
        Object $warehouseId = this.getWarehouseId();
        result = result * 59 + ($warehouseId == null ? 43 : $warehouseId.hashCode());
        Object $warehouseCode = this.getWarehouseCode();
        result = result * 59 + ($warehouseCode == null ? 43 : $warehouseCode.hashCode());
        Object $warehouseName = this.getWarehouseName();
        result = result * 59 + ($warehouseName == null ? 43 : $warehouseName.hashCode());
        return result;
    }

    public String toString() {
        return "WarehouseEntity(warehouseId=" + this.getWarehouseId() + ", warehouseCode=" + this.getWarehouseCode() + ", warehouseName=" + this.getWarehouseName() + ")";
    }
}
